
public class Fatorial 
{
	private int valor;
	
	public Fatorial(int valor)
	{
		this.valor = valor;
	}
	public int getFatorial()
	{
		int fat = 1;
		for(int i = 1; i<= this.valor; i++)
		{
			fat*= i;
		}
		return fat;
	}
}
